package com.wy.springbootdubboprovider.service.impl;


import com.alibaba.dubbo.config.annotation.Service;

import com.wy.springbootdubboprovider.entity.User;
import com.wy.springbootdubboprovider.mapper.UserMapper;
import com.wy.springbootdubboprovider.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wuyue
 * @since 2021-06-22
 */
@Service(interfaceClass = UserService.class,timeout = 15000)
@Component
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findUserById(String id) {
        return userMapper.selectById(id);
    }
}
